/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techshop.service.impl;

import com.techshop.dao.OsDao;
import com.techshop.model.Os;
import com.techshop.service.OsService;
import java.util.List;

/**
 *
 * @author Hai-PC
 */
public class OsServiceImpl implements OsService
{    
    private OsDao osDao;    

    @Override
    public Os getById(int osID)
    {
        return this.getOsDao().getById(osID);
    }

    @Override
    public boolean insert(Os os)
    {
        return this.getOsDao().insert(os);
    }

    @Override
    public boolean update(Os os)
    {
        return this.getOsDao().update(os);
    }

    @Override
    public boolean delete(Os os)
    {
        return this.getOsDao().delete(os);
    }

    /**
     * @return the osDao
     */
    public OsDao getOsDao()
    {
        return osDao;
    }

    /**
     * @param osDao the osDao to set
     */
    public void setOsDao(OsDao osDao)
    {
        this.osDao = osDao;
    }

    @Override
    public List<Os> getAll()
    {
        return osDao.getAll();
    }
}